<template>
  <section>
    <el-tabs v-model="tabName" @tab-click="checkTab">
      <el-tab-pane label="回报管理" name="first">
        <gift-define-list v-if="tabName=== 'first'"></gift-define-list>
      </el-tab-pane>
      <el-tab-pane label="统计管理" name="second">
        <record v-if="tabName === 'second'"></record>
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import record from './marketingRecord/recordList'
  import giftDefineList from './giftDefine/giftDefineList'
  import {mapGetters, mapActions, mapMutations} from 'vuex'
  import Vue from 'vue'//后续添加属性，需要vue联动
  import errHandler from '@/assets/errHandler'
  import dateFormater from '@/common/date-formater'
  export default {
    name: "index",
    props:[],
    components:{giftDefineList,record},
    data(){
      return {
        tabName:'first'
      }
    },
    created(){
    },
    methods: {
      ...mapActions({
        fetch: 'fetch'
      }),
      checkTab(e){
        console.log('checkTab----',e)
      }
    }
  }
</script>

<style scoped>

</style>
